/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package poker.neuralnetwork;

import java.util.List;


/**
 * The input "perceptron". This is a special case of perceptron.
 * 
 * @author Benjamin L. Brodie <blbrodie@gmail.com>
 */
public class Input implements Perceptron{
    private Double value;

   /**
    * Updates the input value;
    * 
    * @param value the new input value
    */
    public void setInput(double value){
        this.value = value;
    }

//    /**
//     * Returns the current value set as input;
//     *
//     * @return the current input value
//     */
//    public double getInput(){
//        return value;
//    }

    /**
     * Because this is actually an input, not a real perceptron, the output just
     * is the value that was updated as input.
     * 
     * 
     * @return the value that is the current input to the perceptron
     */
    public double output() {
        if (value == null){
            throw new IllegalArgumentException("Input does not have a value;");
        }

        return value;
    }

    //has no edges
    public List<Edge> getEdges() {
        return null;
    }


}
